package com.chenyongjing.design.pattern.bridge;

/**
 * 组成或继承
 * 抽象的电脑类
 */
public abstract class Computer {
    //组合
    private Brand brand;

    public Computer(Brand brand){
        this.brand = brand;
    }

    public void info(){
        brand.info();
    }

}
